﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WinCSharp
{
    public partial class getLocalCookie : Form
    {
        public getLocalCookie()
        {
            InitializeComponent();
        }

        private void btnGet_Click(object sender, EventArgs e)
        {
            //"http://saled.cs-air.com/ECS/login.jsp"
            //C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll
            //C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll
            string cc = System.Windows.Application.GetCookie(new Uri(textBox1.Text));
            richTextBox1.Text = cc;
        }
    }
}
